IF OBJECT_ID('dbo.Products', 'U') IS NOT NULL
  DROP TABLE dbo.Products;
  
CREATE TABLE [dbo].[Products](
    [Id] [int] IDENTITY(1,1) NOT NULL,
    [ProductName] [nvarchar](max) NULL,
    [Category] [int] NOT NULL,
    PRIMARY KEY ([ID])
);

ALTER TABLE [dbo].[Cargo] 
WITH CHECK ADD CONSTRAINT 
[FK_Cargo_Pd] FOREIGN KEY([ProductId]) 
REFERENCES [dbo].[Products] ([Id]);